package com.rankeiot.core.excel;

import ch.rabanti.nanoxlsx4j.Cell;

import java.util.ArrayList;
import java.util.List;

public class Row {
   private int rowNum;
   private List<Cell> cells;
   private int worksheetIndex;
   private String worksheetName;
   public Row(int rowNum,int colCount){
      this.rowNum=rowNum;
      if(colCount==0){
          cells=new ArrayList<>();
      }else{
          cells=new ArrayList<>(colCount);
      }
   }

    public int getRowNum() {
        return rowNum;
    }

    public List<Cell> getCells() {
        return cells;
    }

    protected void setWorksheetIndex(int worksheetIndex) {
        this.worksheetIndex = worksheetIndex;
    }

    protected void setWorksheetName(String worksheetName) {
        this.worksheetName = worksheetName;
    }

    public int getWorksheetIndex() {
        return worksheetIndex;
    }

    public String getWorksheetName() {
        return worksheetName;
    }

    protected void addCell(Cell cell){
       cells.add(cell);
    }
}
